package hvzt.minimap.activities;

import hvzt.minimap.asynctasks.Progress;
import iface.Status;

/**
 * Activities that make server calls through the Ambassador should implement this interface.
 * @author Franklin Pearsall
 *
 */
public interface ServerActivity {
	
	/**
	 * updateProgress() will be called by an AsyncTask when progress should be shown on the UI.
	 * @param progress
	 */
	public void updateProgress(Progress progress);
	
	/**
	 * handleResult() will be called by an AsyncTask when the task is finished and the activity
	 * should handle the result.
	 * @param result
	 */
	public void handleResult(Status result);
}
